$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/useing/public',
            method: 'get',
            success: function (res) {
                var sdd = [];
                var str = '';
                for (var i = 0; i < 24; i++) {
                    sdd.push(res[i])
                    // console.log(sdd);
                }
                $.each(sdd, function (index, item) {
                    $.each(item, function (index, item1) {
                        str += "<li class=hot-1 hot-11 >" +
                            "<span>首发</span>" +
                            "<img src=" +item.img+">" +
                            "<div class=up-box>" +
                            "<div class=min-tou>" +item.text+"</div>" +
                            "<div class=number>" +
                            "<span class=fl>2032</span>" +
                            "<span class=fr>20台</span>" +
                            "</div>" +
                            "<div class=time>" +
                            "<span> &nbsp;1392</span>申请&nbsp;" +
                            "<span>剩余时间2天</span>" +
                            "</div>" +
                            "</div>" +
                            "</li>"
                    })
                })
                $('.content-box').html(str);
            }
        })
        $('.content-box5').click(function () {
            $('.content-box').css('height', '1410px');
            $('.both-box').css('height', '1560px');
            $('.content-box5').hide();
        })
    }
})